package com.spider.javabean;

public class Test {
    public static void main(String[] args) {
        //目标：搞清楚实体类是啥？搞清楚其基本作用和应用场景
        //实体类的基本作用：创建它的对象，存取数据（封装数据）
        Student s1 = new Student();
        s1.setName("诗白灯");
        s1.setChinese(90);
        s1.setMath(80);
        System.out.println(s1.getName());
        System.out.println(s1.getChinese());
        System.out.println(s1.getMath());
        Student s2 = new Student("violet", 60, 70);
        System.out.println(s2.getName());
        System.out.println(s2.getChinese());
        System.out.println(s2.getMath());
        System.out.println("--------------------------------");
        StudentOperator so = new StudentOperator(s2);
        so.printScore();
        so.printAvg();
    }
}
